package tech.bmatch.redpack.service;

import tech.bmatch.redpack.model.RedPack;
import tech.bmatch.redpack.model.RedPackType;
import tech.bmatch.redpack.param.CreateRedPackParam;

import java.util.List;

public interface RedPackService {
    /**
     * 创建红包
     * @param createRedPackParam
     * @return
     */
    public RedPack create(CreateRedPackParam createRedPackParam);

    /**
     * 查询红包服务
     * @param redPackType
     * @return
     */
    public List<RedPack> query(RedPackType redPackType);


    /**
     * 添加红包数据
     * @param redPack
     */
    public void add(RedPack redPack);
}
